const jdMaoTai = () => {
    logd('开始抢购' + timeString());
    const selectors = id('com.jd.lib.productdetail.feature:id/add_2_car').text('立即抢购');
    const isResult = has(selectors);
    if (isResult) {
        logd('预约/抢购' + timeString());
        const node = selectors.getOneNodeInfo(0);
        if (node) {
            node.click();
            const commit = clz('android.widget.Button').text('提交订单');
            const isCommit = waitExistNode(commit, 5 * 1000);
            while (isCommit) {
                logd('提交订单' + timeString());
                const node_commit = commit.getOneNodeInfo(3 * 1000);
                if (node_commit) {
                    node_commit.click();
                }
            }
        }
    }
}